package view.views.dialogContentViews;

import java.awt.FlowLayout;

import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

import model.Constants;
import view.components.HostComboBox;

public class AddSubnetContent extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private final HostComboBox hostCombo = new HostComboBox();
	private final SubnetBoxPanel subnetBoxPanel;

	public AddSubnetContent() {

		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

		JPanel contentPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));

		JLabel title = new JLabel(Constants.CHOOSEHOST);

		contentPanel.add(title);
		this.add(contentPanel);

		JPanel boxes = new JPanel(contentPanel.getLayout());

		JLabel host = new JLabel(Constants.HOST);
		boxes.add(host);
		boxes.add(hostCombo);

		this.add(boxes);

		subnetBoxPanel = new SubnetBoxPanel();
		this.add(subnetBoxPanel);
	}

	public HostComboBox getHostCombo() {
		return hostCombo;
	}

	public SubnetBoxPanel getSubnetBoxPanel() {

		return subnetBoxPanel;
	}

}
